<?php
namespace app\easyreportphp\controller;
use \think\Request;
use \think\View;
class Base extends \think\Controller
{
	protected $env = 'prod';
	protected $ctxPath = '';
	protected $ctxPathIndex = '';
	protected $version = 'v20180329001';
	
    protected function _initialize()
    { 
		$request = Request::instance();
		$this->ctxPath = $request->domain().'/easyreportphp';
		$this->ctxPathIndex = $request->domain().'/index.php/easyreportphp';
		$this->assign('ctxPath',$this->ctxPath );
		$this->assign('ctxPathIndex',$this->ctxPathIndex );
		$this->assign('version',$this->version );
		$this->assign('env',$this->env );
    } 
}
